Order
of Queue Commitment
When the SetupCommitFileQueue function commits the file
queue, it processes the file operations in the following order: file deletion
operations, then file renaming operations, and finally, file copying
operations. The following figure illustrates the life cycle of a queue s commitment process.
start the queue
start the
delete subqueue
start a file delete
operation < - - repeat for each
finish a file delete
operation < - - queued file
delete
finish the delete subqueue
start the
rename subqueue
start a file rename operation
< - - repeat for each
finish a file rename
operation < - - queued file
rename
finish the rename subqueue
start the
copy subqueue
start a file copy operation < - - repeat for each
finish a file copy operation < - - queued file copy
finish the copy subqueue
finish the queue
At each step,
or if an error occurs, the SetupCommitFileQueue
For example,
if a file copy operation needed a source file that was not available at the
current path, SetupCommitFileQueue would send a SPFILENOTIFY_NEEDMEDIA
notification to the callback routine, along with information about the file and
media required. The callback routine could use this information to generate a
dialog box that prompts the user to insert the next disk by calling SetupPromptForDisk
A default
queue callback routine, SetupDefaultQueueCallback
If none of
the functionality of the callback routine suits your needs, you can write a
self-contained custom callback routine that does not call the default queue
callback routine.
For more
information about queue callback routines, see Default Queue Callback
Routine